package com.css.modules.elasticSearch.entity;

/**
 * 产品实体
 * @author zhoudong
 * @version 0.1
 * @date 2018/12/13 15:22
 */
public class LawRepoEntityBuilder {
    private static LawRepoEntity productDocument;

    // create start
    public static LawRepoEntityBuilder create(){
        productDocument = new LawRepoEntity();
        return new LawRepoEntityBuilder();
    }
    public LawRepoEntityBuilder addId(String id) {
        productDocument.setId(id);
        return this;
    }

    public LawRepoEntityBuilder addTitle(String title) {
        productDocument.setTitle(title);
        return this;
    }

    public LawRepoEntityBuilder addContent(String content) {
        productDocument.setContent(content);
        return this;
    }



    public LawRepoEntity builder() {
        return productDocument;
    }
}
